ff3a595f7516266fb9f6ffe7e1732056493004fe,Ajax/Ajax/Sources/er/ajax/AjaxObserveField.java,AjaxObserveField,appendToResponse,#WOResponse#WOContext#,52
Before Change
NSMutableDictionary options = createAjaxOptions(component);
Boolean fullSubmitBoolean = (Boolean) valueForBinding("fullSubmit", component);
boolean fullSubmit = (fullSubmitBoolean != null && fullSubmitBoolean.booleanValue());
AjaxObserveField.appendToResponse(response, context, this, observeFieldID, updateContainerID, fullSubmit, options);
AjaxUtils.appendScriptFooter(response);
}
}
After Change
String observeFieldID = (String) valueForBinding("observeFieldID", component);
String updateContainerID = (String) valueForBinding("updateContainerID", component);
NSMutableDictionary options = createAjaxOptions(component);
boolean fullSubmit = ERXComponentUtilities.booleanValueForBinding(component, "fullSubmit", false);
boolean observeFieldDescendents;
if (observeFieldID != null) {
observeFieldDescendents = false;
}
else {
observeFieldDescendents = true;
observeFieldID = (String)valueForBinding("id", component);
if (observeFieldID == null) {
observeFieldID = AjaxUtils.toSafeElementID(context.elementID());
}
String elementName = (String)valueForBinding("elementName", component);
if (elementName == null) {
elementName = "div";
}
response.appendContentString("<" + elementName + " id = \"" + observeFieldID + "\">");
if (hasChildrenElements()) {
appendChildrenToResponse(response, context);
}
response.appendContentString("</" + elementName + ">");
}
AjaxUtils.appendScriptHeader(response);
AjaxObserveField.appendToResponse(response, context, this, observeFieldID, observeFieldDescendents, updateContainerID, fullSubmit, options);
AjaxUtils.appendScriptFooter(response);
}